<h1>获取模式： ({{mode}})</h1>
<h3>用户列表：</h3>
<ul>
	<li (click)="onSelect(player)" *ngFor="let player of players trackBy:trackByPlayers">{{player.name}}</li>
</ul>
<!--<label>新名字: <input [(ngModel)]="selectedPlayer?.name"  /></label>-->
<label>新名字: <input [ngModel]="selectedPlayer?.name"  (ngModelChange)="selectedPlayer && selectedPlayer.name=$event" /></label>
<button (click)="updatePlayer()">更新</button>
<p class="error" *ngIf="errorMessage">{{errorMessage}}</p>